Adwaita: textview drag hilight
authorLapo Calamandrei <calamandrei@gmail.com>
Sat, 12 Mar 2016 14:22:35 +0000 (15:22 +0100)
committerLapo Calamandrei <calamandrei@gmail.com>
Sat, 12 Mar 2016 14:22:35 +0000 (15:22 +0100)
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 12264637331796a49cf8e3838596043cc1a664c3..8a0d9c92a4d63573459fefad55c75503a84de5b7 100644 (file)
@@ -188,6 +188,12 @@ textview { // This will get overridden by .view, needed by gedit line numbers
   background-color: mix($bg_color, $base_color, 50%);
 
   &:backdrop { background-color: mix($backdrop_bg_color, $backdrop_base_color, 50%); }
+
+  &:drop(active) {
+    &, & > text { box-shadow: none; }
+
+    > text { background-color: transparentize($drop_target_color, 0.9); }
+  }
 }
 
 %osd, .osd {
index a8cac8361f4a4c661e82d00126986acd21528a12..86e7d3199a742c1b709efce90e4b0d06df033516 100644 (file)
@@ -119,6 +119,10 @@ textview {
   background-color: #313434; }
   textview:backdrop {
     background-color: #333636; }
+  textview:drop(active), textview:drop(active) > text {
+    box-shadow: none; }
+  textview:drop(active) > text {
+    background-color: rgba(90, 164, 17, 0.1); }
 
 popover.background.touch-selection, popover.background.magnifier, .csd popover.background.touch-selection, .csd popover.background.magnifier, popover.background.osd, .csd popover.background.osd, .app-notification,
 .app-notification.frame, .osd .scale-popup, .osd {
index 15866d1a5684c4f7650beb17060130ad067bb832..4c90aa95c1ee364a595ac7947214328fb0f06383 100644 (file)
@@ -119,6 +119,10 @@ textview {
   background-color: #f4f4f3; }
   textview:backdrop {
     background-color: #f4f4f3; }
+  textview:drop(active), textview:drop(active) > text {
+    box-shadow: none; }
+  textview:drop(active) > text {
+    background-color: rgba(115, 210, 22, 0.1); }
 
 popover.background.touch-selection, popover.background.magnifier, .csd popover.background.touch-selection, .csd popover.background.magnifier, popover.background.osd, .csd popover.background.osd, .app-notification,
 .app-notification.frame, .osd .scale-popup, .osd {